package com.torlesse.feign.impl;

import com.torlesse.feign.UserClient;
import com.torlesse.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ：torlesse
 * @date ：Created in 17:11 2021/8/8 0008
 * @description ：
 * @version: 1.0
 */
@Component
public class UserClientImpl implements UserClient {
    @Override
    @GetMapping("/{id}")
    public User findByUid(@PathVariable("id")Integer id){
        User user = new User();
        user.setId(100);
        user.setUsername("降级");
        user.setPhone("123123");
        return user;
    }
}
